<?php

class Soul_Language_Factory {

    private static $_translator = NULL;
    private static $_culture = NULL;

    public static function getTranslator() {
        if(is_null(self::$_translator)){
            self::$_translator = Soul_Loader::loadSingleton('language_translator');
        }
        return self::$_translator;
    }

    public static function getCulture(){
        if(is_null(self::$_culture)){
            self::$_culture = Soul_Loader::loadSingleton('language_culture');
        }
        return self::$_culture;
    }
}